package com.manage.competition.service.impl;

import com.manage.competition.service.IBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

/**
 * Create with IDEA
 *
 * @Author:Vantcy
 * @Date: Create in 14:53 2019/1/23
 * @Description:
 */
@Service
public class BaseServiceImpl<T> implements IBaseService<T>{

//    @Autowired
//    private JpaRepository<T,Long> baserepository;
//
//    @Override
//    public T save(T t) {
//        return baserepository.save(t);
//    }
//
//    @Override
//    public T getById(Long id) {
//        return baserepository.findById(id).get();
//    }
//
//    @Override
//    public void delete(T t) {
//        baserepository.delete(t);
//    }

}
